package com.zdg.service;

import com.zdg.po.Type;

import java.util.List;

public interface TypeService {
    //保存标签
    int saveType(Type type);
    //根据ID查询标签
    Type getTypeById(Long id);
    //根据名称查询标签
    Type getTypeByName(String name);
    //查询所有标签
    List<Type> getAllType();
    //查询推荐标签
    List<Type> getAdminType();
    //删除标签
    int deleteType(Long id);
    //更新标签
    int updateType(Type type);
    //首页的显示标签
    List<Type> findTypeListBefore(Integer size);
}
